package top.itaso.app.ui.apps

import android.graphics.drawable.Drawable

/**
 *
 * @Description:
 * @Author: dengfu.su
 * @CreateDate: 2021/8/4
 */
data class AppEntity(
    val appIcon: Drawable,
    val appName: String,
    val appPackageName: String,
    val appVersionName: String,
    val appVersionCode: Int,
    val isSystemApp: Boolean,//是否为系统级应用
    val appInstallPath: String,//安装路径
    val installTime: Long,
    val updateTime: Long
) {
    var isEllipsize2Marquee: Boolean = false //信息过长时是否执行跑马灯效果
    override fun toString(): String {
        return "AppInfo(appIcon=$appIcon, appName='$appName', appPackageName='$appPackageName', appVersionName='$appVersionName', appVersionCode=$appVersionCode, isSystemApp=$isSystemApp, appInstallPath='$appInstallPath', installTime=$installTime, updateTime=$updateTime, isEllipsize2Marquee=$isEllipsize2Marquee)"
    }

}
